🔍 Слишком медленно или жрёт кучу памяти? Эта статья расскажет, как:
1️⃣ Включить CPU- и heap-профилирование через runwww.tg-me.com/pprof 2️⃣ Анализировать .prof`-файлы командой `go tool pprof (topN, граф, list) 3️⃣ Оптимизировать парсинг и работу с данными: стриминг вместо загрузки всего в память, замена дорогих функций, упрощение структур 4️⃣ Профилировать живой сервер через net/http/pprof и ловить hot-spots «на ходу»
⚡ Результат: время работы сократилось с ~14 до ~7 секунд, память — с 1.7 ГБ до 57 МБ!
🔍 Слишком медленно или жрёт кучу памяти? Эта статья расскажет, как:
1️⃣ Включить CPU- и heap-профилирование через runwww.tg-me.com/pprof 2️⃣ Анализировать .prof`-файлы командой `go tool pprof (topN, граф, list) 3️⃣ Оптимизировать парсинг и работу с данными: стриминг вместо загрузки всего в память, замена дорогих функций, упрощение структур 4️⃣ Профилировать живой сервер через net/http/pprof и ловить hot-spots «на ходу»
⚡ Результат: время работы сократилось с ~14 до ~7 секунд, память — с 1.7 ГБ до 57 МБ!
The SSE was the first modern stock exchange to open in China, with trading commencing in 1990. It has now grown to become the largest stock exchange in Asia and the third-largest in the world by market capitalization, which stood at RMB 50.6 trillion (US$7.8 trillion) as of September 2021. Stocks (both A-shares and B-shares), bonds, funds, and derivatives are traded on the exchange. The SEE has two trading boards, the Main Board and the Science and Technology Innovation Board, the latter more commonly known as the STAR Market. The Main Board mainly hosts large, well-established Chinese companies and lists both A-shares and B-shares.
The Singapore stock market has alternated between positive and negative finishes through the last five trading days since the end of the two-day winning streak in which it had added more than a dozen points or 0.4 percent. The Straits Times Index now sits just above the 3,060-point plateau and it's likely to see a narrow trading range on Monday.